﻿<%@ Page Title="" Language="C#" MasterPageFile="~/pages/master/WebForm.Master" AutoEventWireup="true"
    CodeBehind="RolesManagerEdit.aspx.cs" Inherits="BF.Web.pages.BaseSystem.RolePermissionManagement.RolesManagement.RolesManagerEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" language="javascript">
        //保存页面
        function Save() {
            if (CheckInput()) {
                ChangeDiv();
            }
            return CheckInput();
        }

        //关闭窗口
        function DoClose() {
            winer.close();
        }

    </script>
    <%--页面验证--%>
    <script type="text/javascript" language="javascript">
        function CheckInput() {
            var result = $("#aspnetForm").validate({
                rules: {
                    ctl00$ContentPlaceHolder1$RoleName: {//角色名称
                        required: true,
                        maxlength: 128
                    },
                    ctl00$ContentPlaceHolder1$Description: {//角色描述
                        maxlength: 128
                    }
                },
                errorClass: "errorClass"
            });
            return result.form();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="content04">
        <tbody>
            <tr>
                <td align="right">角色名称：</td><td align="left">
                    <tll:DataTextBox ID="RoleName" runat="server" FeildName="RoleName" TableName="aspnet_Roles"
                        ></tll:DataTextBox>
                    <%--角色ID--%>
                    <tll:DataHiddenField ID="RoleId" runat="server" />
                </td>
            </tr>
            <tr>
                <td align="right">角色描述：</td><td align="left">
                    <tll:DataTextBox ID="Description" runat="server" FeildName="Description" TableName="aspnet_Roles"
                        Width="260" TextMode="MultiLine" Rows="7"></tll:DataTextBox>
                </td>
            </tr>
        </tbody>
    </table>

    <table width="100%" height="36" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center">
                <asp:Button ID="lbtnSave" runat="server" TabIndex="0" Text="保存" class="btn04" OnClick="lbtnSave_Click"
                    OnClientClick="return Save();" />&nbsp;
                <%--                <asp:Button ID="lbtnReSet" runat="server" OnClientClick="return Doclear() ;" TabIndex="0"
                    Text="重置" class="btn04" />&nbsp;--%>
                <asp:Button ID="lbtnClose" runat="server" OnClientClick="return DoClose() ;" TabIndex="0"
                    Text="关闭" class="btn04" />
            </td>
        </tr>
    </table>
    <asp:UpdatePanel ID="Updatepanel1" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="lbtnSave" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
